<?php
defined('BASEPATH') OR exit('No direct script access allowed');

use QCloud_WeApp_SDK\Auth\LoginService as LoginService;
use QCloud_WeApp_SDK\Constants as Constants;

class LoginModel extends CI_Model{

    public function checkLogin(){
        $result = LoginService::check();
        if ($result['loginState'] === Constants::S_AUTH) {
             return true;
        }else{
            return false;
        }

    }

    public function getUserWxId(){
        return  1111; 
    }

    public function checkRole(){
        return 1;
    }
}
